package org.lc.stk.web.dto.question;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;

@Schema(description = "问答题数据传输对象")
public class EssayQuestionDTO extends QuestionResponseDTO {
    
    @Schema(description = "题干富文本内容")
    @NotBlank(message = "题干不能为空")
    private String stemContent;
    
    @Schema(description = "参考答案富文本内容")
    @NotBlank(message = "参考答案不能为空")
    private String referenceAnswer;
    
    @Schema(description = "评分标准")
    private String scoringCriteria;
    
    @Schema(description = "关键词列表，用于辅助评分")
    private String[] keywords;

    // 添加无参构造函数
    public EssayQuestionDTO() {
        super();
    }

    // Getters and Setters
    public String getStemContent() {
        return stemContent;
    }

    public void setStemContent(String stemContent) {
        this.stemContent = stemContent;
    }

    public String getReferenceAnswer() {
        return referenceAnswer;
    }

    public void setReferenceAnswer(String referenceAnswer) {
        this.referenceAnswer = referenceAnswer;
    }

    public String getScoringCriteria() {
        return scoringCriteria;
    }

    public void setScoringCriteria(String scoringCriteria) {
        this.scoringCriteria = scoringCriteria;
    }

    public String[] getKeywords() {
        return keywords;
    }

    public void setKeywords(String[] keywords) {
        this.keywords = keywords;
    }
}